package com.zh.javafeaturesupport.ext

import java9.util.stream.Stream
import java9.util.stream.StreamSupport

/**
 * Collection 转 Stream
 */
fun <T> Collection<T>.streamSupport(): Stream<T> {
    return StreamSupport.stream<T>(this)
}